<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type"></meta>
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"></meta>
        <?php
            $url_css = $url_base_theme."/css/";
            foreach ($array_css as $style) {
            if(is_array($style)) { echo str_replace("[URL]", $url_css, $style[0]); }else { ?>
        <link rel="stylesheet" href="<?php echo $url_css; ?><?php echo $style; ?>.css?p=<?= uniqid() ?>" type="text/css" media="screen" />
            <?php } } ?>
        <link rel="shortcut icon" href="<?= URL::base() ?>favicon.ico" />
        <?php
        $url_js = $url_base_theme."/js/";
        foreach ($array_script as $script) { if(is_array($script)) { echo str_replace("[URL]", $url_js, $script[0]); } else { ?>
            <script src="<?php echo $url_js; ?><?php echo $script; ?>.js?p=<?= uniqid() ?>" ></script>
        <?php } } ?>
        <title><?= $title ?></title>
        <script>
            var url_base_theme = '<?= $url_base_theme ?>';
            var url_base_media = '<?= $url_base_media ?>';
            var url_base = '<?= URL::base() ?>';
        </script>
    </head>
    
        <?php echo View::factory('../template/'.$template.'/'.$layout)->set('content', $content)->render(); ?>
    
</html>
